package com.safe.text;

import com.safe.text.R;
import com.markupartist.android.widget.ActionBar;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

public class AboutActivity extends BaseActivity {
	Button btnLegal;
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.about);
		currentActivity = this;
		ActionBar actionBar = (ActionBar) findViewById(R.id.actionbar);
		actionBar.setTitle("About");
		actionBar.setHomeAction(new HomeAction());
		actionBar.addAction(new AboutAction());
		actionBar.addAction(new SettingsAction());
		actionBar.addAction(new RefreshAction());
		
		btnLegal = (Button) findViewById(R.id.btn_legal);

		btnLegal.setOnClickListener(new View.OnClickListener() {
			public void onClick(View v) {

				Intent legal = new Intent(AboutActivity.this,
						LegalActivity.class);

					Intent returnIntent = new Intent();
					setResult(RESULT_CANCELED, returnIntent);
					startActivity(legal);

			}
		});
	}

	public void onResume() {
		currentActivity = this;
		super.onResume();
	}
}
